async function fun(){
    let operas;
    let movieId = location.search;
    console.log(movieId);
    await $.ajax({
        url: 'https://www.fastmock.site/mock/bb4157f45a0b5ffdcb3f6d984517a6c0/woniuMovie/getAllOperas',
        success: (data) => {
            operas = data.operas;
            operas.forEach(opera => {
                $("#filmlist").append($(
                    `<a href="filmdetails.html?id=${opera.id}">
                        <li>
                            <img src="${opera.img_src}" alt="找不到图片">
                            <div>
                                <h6>${opera.name}</h6>
                                <p><i class="iconfont icon-dingwei"></i>1.0km</p>
                            </div>
                        </li>
                    </a>`
                ));
            });
        }
    });
}
fun();